﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StockCrawlerLib.DAL;

namespace StockCrawler.UserControl
{
    public partial class ucStockList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void LinqServerModeDataSourceStock_Selecting(object sender, DevExpress.Data.Linq.LinqServerModeDataSourceSelectEventArgs e)
        {
            int index = (int)Session["index"];
            StockRepository objStockRepo = new StockRepository();
            e.QueryableSource = objStockRepo.SelectRecordsByStockExchange(index);
        }

        
    }
}